package com.graduation.table.student.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.graduation.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * @Description: 学生表
 * @Author: jeecg-boot
 * @Date:   2022-04-08
 * @Version: V1.0
 */
@Data
@TableName("student")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="student对象", description="学生表")
public class Student extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private String id;
	/**学生名称*/
    @ApiModelProperty(value = "学生名称")
	private String name;
	/**学号*/
    @ApiModelProperty(value = "学号")
	private String number;
	/**手机号*/
    @ApiModelProperty(value = "手机号")
	private String phone;
	/**生日*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "生日")
	private Date birthday;
	/**什么族*/
    @ApiModelProperty(value = "什么族")
	private String family;
	/**学院id*/
    @ApiModelProperty(value = "学院id")
	private String collegeId;
    @TableField(exist = false)
	private String collegeName;
	/**专业id*/
    @ApiModelProperty(value = "专业id")
	private String majorId;
    @TableField(exist = false)
	private String majorName;
	/**班级id*/
    @ApiModelProperty(value = "班级id")
	private String classId;
    @TableField(exist = false)
	private String className;
	/**是否为学生干部（0.不是1.是）*/
    @ApiModelProperty(value = "是否为学生干部（0.不是1.是）")
	private Integer isCadre;
	/**学生干部名称*/
    @ApiModelProperty(value = "学生干部名称")
	private String cadreName;
	/**省份*/
    @ApiModelProperty(value = "省份")
	private String provinceId;
    @TableField(exist = false)
	private String provinceName;
	/**公司id*/
    @ApiModelProperty(value = "公司id")
	private String companyId;
    @TableField(exist = false)
	private String companyName;
	/**职业id*/
    @ApiModelProperty(value = "职业id")
	private String postId;
    @TableField(exist = false)
	private String postName;
	/**薪资*/
    @ApiModelProperty(value = "薪资")
	private java.math.BigDecimal salary;
}
